package com.ghost.alibabaghost.web.controller;

import com.ghost.alibabaghost.api.model.TestEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
public class TestController {

    @RequestMapping(value = "/requestTest")
    public String testRequest(@RequestBody @Valid TestEntity testEntity){
        String s = testEntity.toString();
        return s;
    }

}
